package com.kitty.web.domain;


import com.kitty.web.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 元宝商城对象 p_onlinemall
 * 
 * @author soul
 * @date 2022-03-10
 */
public class POnlinemall extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 物品名称 */

    private String name;

    /** 物品编号 */

    private String number;

    /** 花费元宝类型 */

    private Integer costtype;

    /** 所在位置 */

    private Integer pos;

    /** 限购数量 */

    private Integer xiangou;

    /** 价格 */

    private Long price;

    /** 折扣 */

    private Integer sale;

    /** 限购时间 */

    private Date time;

    /** 所在页面 */

    private Integer page;

    /** 使用类型 */

    private Long type;

    /** 物品类型 */

    private Long itemtype;

    /** 量词 */

    private String unit;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setNumber(String number) 
    {
        this.number = number;
    }

    public String getNumber() 
    {
        return number;
    }
    public void setCosttype(Integer costtype) 
    {
        this.costtype = costtype;
    }

    public Integer getCosttype() 
    {
        return costtype;
    }
    public void setPos(Integer pos) 
    {
        this.pos = pos;
    }

    public Integer getPos() 
    {
        return pos;
    }
    public void setXiangou(Integer xiangou) 
    {
        this.xiangou = xiangou;
    }

    public Integer getXiangou() 
    {
        return xiangou;
    }
    public void setPrice(Long price) 
    {
        this.price = price;
    }

    public Long getPrice() 
    {
        return price;
    }
    public void setSale(Integer sale) 
    {
        this.sale = sale;
    }

    public Integer getSale() 
    {
        return sale;
    }
    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }
    public void setPage(Integer page) 
    {
        this.page = page;
    }

    public Integer getPage() 
    {
        return page;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setItemtype(Long itemtype) 
    {
        this.itemtype = itemtype;
    }

    public Long getItemtype() 
    {
        return itemtype;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("number", getNumber())
            .append("costtype", getCosttype())
            .append("pos", getPos())
            .append("xiangou", getXiangou())
            .append("price", getPrice())
            .append("sale", getSale())
            .append("time", getTime())
            .append("page", getPage())
            .append("type", getType())
            .append("itemtype", getItemtype())
            .append("unit", getUnit())
            .toString();
    }
}
